<template>
    <div>
        <mt-swipe :auto="4000">
            <mt-swipe-item v-for="item in swiperInfo" :key="item.url">
                <img :class="{full: isfull}" :src="item.img" alt="">
            </mt-swipe-item>
        </mt-swipe>
    </div>
</template>

<script>
    export default {
        name: "",
        props: ['swiperInfo', 'isfull'] //isfull 布尔值【确定图片宽度是否100%】
    }
</script>

<style lang="less" scoped>
    .mint-swipe{
        height: 200px;
        .mint-swipe-item{
            text-align: center;
            img{
                /*width: 100%;*/
                height: 100%;
            }
        }
    }

    .full{
        width: 100%;
    }
</style>